package com.loong.data.model;

import lombok.*;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;

/**
 * @Description:
 * @Author: hzp
 * @Date: 2020-12-3 16:32
 */
@Setter
@Getter
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Document(indexName = "goods_category",type="goods_category",replicas = 0)
public class GoodsCategoryModel implements Serializable {

    @Field
    private Long id;
    /**
     * 类别名称
     */
    @Field(type = FieldType.Auto)
    private String categoryName;

    /**
     * 父类别
     */
    @Field
    private Long parentId;

    /**
     * logo图标
     */
    @Field
    private String logo;

    /**
     * 店铺id
     */
    @Field
    private Long shopId;

}
